package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class SContactSch extends SearchEasyUI{

    //根据时间进行搜索的部分
    private Date createdStartSch;
    private Date createdEndSch;

    @ValueField(column = "createdTime", equal = ">=")
    public Date getCreatedStartSch() {
        return createdStartSch;
    }

    public void setCreatedStartSch(Date createdStartSch) {
        this.createdStartSch = createdStartSch;
    }

    @ValueField(column = "createdTime", equal = "<")
    public Date getCreatedEndSch() {
        if (createdEndSch != null) {
            return DateUtil.getDateAfterDay(createdEndSch, 1);
        }
        return createdEndSch;
    }

    public void setCreatedEndSch(Date createdEndSch) {
        this.createdEndSch = createdEndSch;
    }


    private Integer idSch;
    private String nameSch;
    private String phoneSch;
    private String positionSch;
    private Date editedTimeSch;
    private Date createdTimeSch;
    private String uuidSch;
    private String qqSch;
    private Integer customerIdSch;
    private String departmentSch;
    private Integer taskIdSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setNameSch(String nameSch){
        this.nameSch = nameSch;
    }
    
    @ValueField(column = "name")
    public String getNameSch(){
        return this.nameSch;
    }

    public void setPhoneSch(String phoneSch){
        this.phoneSch = phoneSch;
    }
    
    @ValueField(column = "phone")
    public String getPhoneSch(){
        return this.phoneSch;
    }

    public void setPositionSch(String positionSch){
        this.positionSch = positionSch;
    }
    
    @ValueField(column = "position")
    public String getPositionSch(){
        return this.positionSch;
    }

    public void setEditedTimeSch(Date editedTimeSch){
        this.editedTimeSch = editedTimeSch;
    }
    
    @ValueField(column = "edited_time")
    public Date getEditedTimeSch(){
        return this.editedTimeSch;
    }

    public void setCreatedTimeSch(Date createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.createdTimeSch;
    }

    public void setUuidSch(String uuidSch){
        this.uuidSch = uuidSch;
    }
    
    @ValueField(column = "uuid")
    public String getUuidSch(){
        return this.uuidSch;
    }

    public void setQqSch(String qqSch){
        this.qqSch = qqSch;
    }
    
    @ValueField(column = "qq")
    public String getQqSch(){
        return this.qqSch;
    }

    public void setCustomerIdSch(Integer customerIdSch){
        this.customerIdSch = customerIdSch;
    }
    
    @ValueField(column = "customer_Id")
    public Integer getCustomerIdSch(){
        return this.customerIdSch;
    }

    public void setDepartmentSch(String departmentSch){
        this.departmentSch = departmentSch;
    }
    
    @ValueField(column = "department")
    public String getDepartmentSch(){
        return this.departmentSch;
    }

    public void setTaskIdSch(Integer taskIdSch){
        this.taskIdSch = taskIdSch;
    }
    
    @ValueField(column = "task_id")
    public Integer getTaskIdSch(){
        return this.taskIdSch;
    }


}